<?php
session_start();
$user = $_SESSION["user"];
$title=$_POST["Title"];
$content=$_POST["Content"];
$updateTime= date_format(new DateTime(),'Y-m-d H:i:s');
$id=$_GET["Id"];
$sql = "UPDATE `article` set `Title`='$title',`Content`='$content',`Updatetime`='$updateTime' where Id=$id and AuthorId=".$user["Id"];
$conn = new mysqli("localhost","root","","myblog");
$rs = $conn->query($sql);
//if($rs)
//echo "修改成功";
$url = "article_list.php";
Header("Location: $url");die("");
?>